		<link rel="stylesheet" href="<?php echo APP_TEMPLATES_URL;?>/css/checkbix.min.css" />
		<link rel="stylesheet" href="<?php echo APP_TEMPLATES_URL;?>/css/public.css" />
		<script src="<?php echo APP_TEMPLATES_URL;?>/js/checkbix.min.js" type="text/javascript" charset="utf-8"></script>
				<script type="text/javascript">
			Checkbix.init();
		</script>

<style>
	body,
	html {
		background: #F4F4F4 !important;
	}
	
	.indexm {
		display: none;
	}
</style>
<!-- 导航 -->
<div class="mui-bar mui-bar-nav bj">
	<button class="mui-btn mui-btn-link mui-btn-nav mui-pull-left zys  mui-action-back">
				<img style=" max-width: 50%; vertical-align: middle;" src="<?php echo APP_TEMPLATES_URL;?>/images/back.png" />
			</button>
	<h1 class="mui-title"><label style="font-size: 22px;vertical-align: middle;">设置支付密码</label></h1>
</div>
<ul class="across">
<?php if(!empty($output['member_info']['member_paypwd'])){?>
<li class="side notactive">
		<div class="countone">
			<label>
					<input type="password" name="old_passwd" id="old_passwd" style="font-size: 14px; width: 100%;vertical-align: middle;border: 0; height: 45px;" placeholder="原密码" />
			</label>
			<label style="width: 36px; display: none;"><img style="width: 28px;" src="<?php echo APP_TEMPLATES_URL;?>/images/chacha.png"/></label>
		</div>
		<div style="color: red; border-bottom: 1px  solid;display:none" id="old_passwd_msg">原密码不能为空</div>
	</li>
	<?php }?>
	<li class="side notactive">
		<div class="countone">
			<label>
					<input type="password" name="password" id="password" style="font-size: 14px; width: 100%;vertical-align: middle;border: 0; height: 45px;" placeholder="新密码" />
			</label>
			<label style="width: 36px; display: none;"><img style="width: 28px;" src="<?php echo APP_TEMPLATES_URL;?>/images/chacha.png"/></label>
		</div>
		<div style="color: red; border-bottom: 1px  solid;display:none;" id="passwordMsg">密码不能为空</div>
	</li>
	
	<li class="side notactive">
		<div class="countone">
			<label>
					<input type="password" name="confirm" id="confirm" style="font-size: 14px; width: 100%;vertical-align: middle;border: 0; height: 45px;" placeholder="请再次输入密码" />
			</label>
			<label style="width: 36px; display: none;"><img style="width: 28px;" src="<?php echo APP_TEMPLATES_URL;?>/images/chacha.png"/></label>
		</div>
		<div style="color: red; border-bottom: 1px  solid;display:none;" id="confirmMsg">密码不一致</div>
	</li>
	<input type="hidden" id="member_id" value="<?php echo $output['member_id']?>" />
</ul>

<div style="padding: 15px; clear: both;">
	<table width="100%">
		<tr>
			<td style="padding-bottom: 8px;">
			</td>
		</tr>
		<tr>
			<td>
				<a class="loginbnt"  href="#">确定</a>
			</td>
		</tr>

	</table>	
</div>
<script language="Javascript">
  $(".loginbnt").click(function(){
	  if($('#old_passwd').val()==''){
         $("#old_passwd_msg").show();
	  }
      if($("#password").val()==''){
          $('#passwordMsg').show();
      }else{
      if($('#confirm').val()!=$("#password").val()){
          $('#confirmMsg').show();
      }else{
    	  $("#old_passwd_msg").hide();
    	  $("#passwordMsg").hide();
    	  $("#confirmMsg").hide();
   	      var ajaxurl = 'index.php?act=member&op=resetpaymentval';
   	      var password = $("#password").val();
   	      var old_passwd = $('#old_passwd').val();
   	      var member_id = $("#member_id").val();
   	      $.ajax({
   					type: "POST",
   					url: ajaxurl,
   					data : {
					    member_id : member_id,
					    old_passwd:old_passwd,
   	    				password : password	
   	    			},
   	    			dataType : "json",
   					success: function(rs){
   	                if(rs.datas == true) {
   	                	window.location.href = 'index.php?act=member&op=accountsafe';
   	                } else {
   	                	$("#confirmMsg").html(rs.datas.error).show();
   	                }
   				    }
   				});
      }   
      }
  });
</script>